#if NEWQ
foreach (Waypoint* waypointp, waypt_list) {
#else
- queue* elem, * tmp;
+ queue* elem, *tmp;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- Waypoint* waypointp = (Waypoint*) elem;
+ void* vwaypointp = static_cast<void*>(elem);
+ Waypoint* waypointp = static_cast<Waypoint*>(vwaypointp);
#endif
double dist;
extra_data* ed;
unsigned int rte_datapoints = 0;
queue *elem, *tmp;
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- testwpt = (Waypoint*)elem;
+ void* vwaypointp = static_cast<void*>(elem);
+ Waypoint* testwpt = static_cast<Waypoint*>(vwaypointp);
if (rte_datapoints == 0) {
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
unsigned int trk_datapoints = 0;
QUEUE_FOR_EACH(&trk->waypoint_list, elem, tmp) {
if (trk_datapoints == 0) {
- Waypoint* testwpt = (Waypoint*)elem;
+ void* vwaypointp = static_cast<void*>(elem);
+ Waypoint* testwpt = static_cast<Waypoint*>(vwaypointp);
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
trk_datapoints++;
}
unsigned char tmp = gbfgetc(tpo_file_in);
+ Q_UNUSED(tmp);
// printf("Skipping unknown byte 0x%x after color\n",tmp);
// byte for name length, then name